<?php
namespace backend\controllers;

use yii\web\Controller;
use common\models\User;


class IndexController extends Controller{

    public function actionIndex()
    {
        $user = new User();
        var_dump($user->find()->select('*')->orderBy('id desc')->limit(1)->one());
    }
}